module.exports = function (UC, source, config, ArFor, cache, package) {


    var setver = function () {

        this.name = "system-driven-init";
        this.Type = "init";
        this.stop = function () {

        };
        this.init = function (Callback) { 
            config.setParamet("addVersion", function (Callback) {
                Callback = Callback || function () {};

                var Source = config.Source;

                var val = config.version;

                val = parseInt(val.split('.').join(''))

                val = "" + (val + 1);

                val = val.split('').join('.');
                
                new source("1e0ndi8r7", {
                    version: val,
                    id: config.id
                }, function () {
                    config.SerdbParameters({
                        version: val
                    });
                    Callback()
                })

            })
            Callback()
        }
    }



    return new setver()

}